package com.czmh.etc.onlinepubsys.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 系统参数配置
 * </p>
 *
 * @author eric
 * @since 2021-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SysConfig对象", description = "系统参数配置")
public class SysConfigParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "名称")
    private String configName;

    @ApiModelProperty(value = "参数编码")
    private String configKey;

    @ApiModelProperty(value = "配置值")
    private String configValue;

    @ApiModelProperty(value = "可选值。如果可选值不为空，则修改该参数值时，只能从可选值中选择。")
    private String configOptions;

    @ApiModelProperty(value = "数据类型。varchar=字符串；int=整型；decimal=浮点数；datetime=日期时间")
    private String dataType;

    @ApiModelProperty(value = "是否可以通过管理员后台进行配置 0不可以，1可以")
    private Integer configurable;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "pageSize")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "pageNum")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "ids")
    private List<Long> ids;

}
